/**
 * @description 
 */

const seq = require('../seq')
const { STRING,DECIMAL } =require('../types')
//users
const User = seq.define('user',{
  userName: {
    type: STRING,
    allowNull: false,//不能为空
    unique: true, //唯一
    comment: '用户名唯一'
  },
  password: {
    type: STRING,
    allowNull: false,//不能为空
    comment: '密码'
  },
  nickName: {
    type: STRING,
    allowNull: false,
    comment: '名称'
  },
  gender: {
    type: DECIMAL,
    allowNull: false,
    defaultValue: 3, //默认值
    comment: '性别（1 男，2 女，3 保密）'
  },
  picture: {
    type: STRING,
    comment: '图像 图片地址'
  },
  city: {
    type: STRING,
    comment: '城市'
  }
})

module.exports = User